package com.neusoft.gene.nep.role.controller;

import com.neusoft.gene.nep.role.entity.Sysnode;
import com.neusoft.gene.nep.role.service.ISysnodeService;
import com.neusoft.gene.nep.entity.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO    系统功能节点树 前端控制器
 * @author: 君醉
 * @date: 2024/6/19 16:14
*/

@RestController
@RequestMapping("/sysnode")
@CrossOrigin("*")
public class SysnodeController {

    @Autowired
    ISysnodeService service;

    @GetMapping("select/all/tree")
    public CommonResult<Sysnode> selectAllByTree(){
        return   service.selectAllByTree();
    }

}
